package com.dz.xjd.api;

import com.dz.xjd.app.UrlValue;
import com.dz.xjd.bean.BaseRespose;
import com.dz.xjd.bean.Token;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

public interface ApiService {


    /* 测试*/
    @POST(UrlValue.BASE)
    @FormUrlEncoded
    Call<String> getTokenTest(@Field("header") String header);

    @POST(UrlValue.BASE)
    @FormUrlEncoded
    Observable<BaseRespose<Token>> getToken(@Field("header") String header);

    /*getMsm*/
    @POST(UrlValue.BASE)
    @FormUrlEncoded
    Observable<String> getMsm(@Field("header") String header, @Field("param") String params);

    /*register*/
    @POST(UrlValue.BASE)
    @FormUrlEncoded
    Observable<BaseRespose<String>> register(@Field("header") String header, @Field("param") String params);

    /*register*/
    @POST(UrlValue.BASE)
    @FormUrlEncoded
    Observable<String> login(@Field("header") String header, @Field("param") String params);

    /*register*/
    @POST(UrlValue.BASE)
    @FormUrlEncoded
    Observable<String> getProfessionInfo(@Field("header") String header, @Field("param") String params);
}
